import request from '@/utils/request'

// 查询奖助学金情况列表
export function listGrant(query) {
  return request({
    url: '/system/grant/list',
    method: 'get',
    params: query
  })
}

// 查询奖助学金情况详细
export function getGrant(id) {
  return request({
    url: '/system/grant/' + id,
    method: 'get'
  })
}

// 新增奖助学金情况
export function addGrant(data) {
  return request({
    url: '/system/grant',
    method: 'post',
    data: data
  })
}

// 修改奖助学金情况
export function updateGrant(data) {
  return request({
    url: '/system/grant',
    method: 'put',
    data: data
  })
}

// 删除奖助学金情况
export function delGrant(id) {
  return request({
    url: '/system/grant/' + id,
    method: 'delete'
  })
}
